package com.ye.mybatis.mapper;

import com.ye.mybatis.pojo.Actor;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SelectMapper {

    Actor getActorById(@Param("id") Integer id);

    List<Actor> getAllActor();

    Integer getCount();

    Map<String, Object> getActorByIdToMap(@Param("id") Integer id);

    List<Map<String, Object>> getAllActorToMap1();

    @MapKey("id")
    Map<String, Object> getAllActorToMap();


}
